<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title>欣和爱生活食育体验馆</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1  user-scalable=no" />
         <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl?>/css/ui-box.css">

        <style>
       
         /* 兼容iphone5 */
       @media (device-height:568px) and (-webkit-min-device-pixel-ratio:2) {
             .abc2 {
            
                min-height: 9em;
                width: 100%;
              }
        }
       
        .ub-img1 {
        -webkit-background-size: cover;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        }
        
      
        body{
            -moz-user-select: none; /*火狐*/
            -webkit-user-select: none;  /*webkit浏览器*/
            -ms-user-select: none;   /*IE10*/
            -khtml-user-select: none; /*早期浏览器*/
            user-select: none;
            
            font: normal 16px Arial,"Microsoft YaHei";
            background-color: #fbeedd;
            max-width: 400px;
            margin: 0 auto;
            min-height: 100%;
            color:#62240f;
            font-family:微软雅黑;
            
         }
         
         .content{
             margin-top:3.5em;
         }
         .text{
             border-radius:6px;outline:none;cursor:pointer;text-indent:12px;
         }

         .ui-header {
            top: 0;
            height: 45px;
            line-height: 45px;
            position: fixed;
            width: 100%;
            z-index: 100;
            left: 0;
            background-color: #f15c22;
          }
          .top{
              margin-top:0.8em;
          }
          .col{
              width:5em;
          }
          

           select{
            -webkit-appearance: none;
            width: 80px;
            height: 24px;
            overflow: hidden;
            
         

          }
          
          .ui-radio input:checked:after {
                content: '';
                display: block;
                width: 12px;
                height: 12px;
                background: #f05b21;
                border-radius: 7px;
                position: absolute;
                left: 5px;
                top: 5px;
          }
          
          .ui-radio input:before {
                content: '';
                display: block;
                width: 20px;
                height: 20px;
                border: 1px solid #dfe0e1;
                border-radius: 13px;
                -webkit-background-clip: padding-box;
                background-clip: padding-box;
                position: absolute;
                left: 0px;
                top: 0;
              }
              
              
              .ui-btn, .ui-btn-lg, .ui-btn-s {
                    height: 30px;
                    line-height: 30px;
                    padding: 0 31px;
                    
             }
             
             .ui-btn-danger {
                background-color: #f15c22;
                background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.5, #f15c22), to(#f15c22));
                color: white;
                border-color: #f43d30;
                -webkit-background-clip: padding-box;
                background-clip: padding-box;
              }
          
          



        </style>
    </head>
    <body class='all ub-img1'>
       
        
        <div id="div1" style="display:none">
       
        </div>
        
        <div id="div1" >
        <div class="content">
            
            <header class="ui-header " style="">
                <div class="ub ub-ac" style="text-align: center">
                    <div class="ub-f1"style="color: #dcdddd;font-size:20px;"><strong>欣和爱生活食育体验馆 <span style="font-size:22px;">电子门票</span></strong></div>
                </div>
            </header>
            
            
            <div class="ub ub-ac top" style="padding-left:1.5em;">
                <div class='ub ub-ver ub-f1'>
                    
                    <div class='ub '>
                        <div>姓名&nbsp;|&nbsp;</div>
                        <div  class="ub-f1 " ><?php echo $model->username;?></div>
                    </div>
                </div>
             </div>
            
            <?php 
            $ccount=Children::model()->count('party_id='.$model->id);
            
            if($ccount>0){?>
             <div class="ub ub-ac top" style="padding-left:1.5em;;">
                <div class='ub ub-ver ub-f1'>
                    
                    <div class='ub '>
                        <div>儿童姓名&nbsp;|&nbsp;</div>
                        <div  class="ub-f1 " >
                            <?php 
                                $ch=Children::model()->findAll("party_id=".$model->id);
                                foreach ($ch as $temp){
                                    echo $temp->username.'&nbsp';
                                }
                            ?>
                        </div>
                    </div>
                </div>
             </div>
            <?php }?>
            
             <div class="ub ub-ac top" style="padding-left:1.5em;;">
            <div>体验时间&nbsp;|&nbsp;</div> 
            <div class="ub-f1 ">
                <?php echo date('Y-m-d',strtotime($model->ad->begins));?>
                <?php echo $model->line->go_time?>
            </div>
            </div>
            
            <div class="ub ub-ac top" style="padding-left:1.5em;;">
             <div >上车地点&nbsp;|&nbsp;</div>
            <div class="ub-f1 " ><?php echo $model->line->position->address;?></div>
            </div>
            
            <div class="ub ub-ac top" style="padding-left:1.5em;;">
            <div>体验馆地址&nbsp;|&nbsp;</div>
            <div class="ub-f1 " >烟台开发区大季家成都大街15号</div>
            </div>
            <div style="height:0.8em;">
                    <hr style="width: 15em;height:1em;border:none;border-top:1px solid #f5956d;" />
            </div>            
            <div>
                <div style="text-align: center">
                    <img src="<?php echo Yii::app()->baseUrl?>/images/2.png" width="110px"/>   
                    <div style="font-size: 10px;color:#63210b">扫描有礼体验馆现场领取</div>
                    <div style="font-weight:bold;color:#f05b21" >有效期  <?php echo date('Y年m月d日',strtotime($model->ad->begins));?> 当天</div>
                </div>
            </div>

            <div class="ub ub-ac top" style="padding-left:1.5em;; ">
                <div class="ub-f1">
                    <div style="width: 10.5em;text-align: center">
                        <img style="width: 10em;height: 3em" src="<?php echo Yii::app()->baseUrl?>/buildcode.php?codebar=BCGcode128&text=<?php echo $model->user_code;?>"/>
                    <div style="text-align: center;font-size: 10px;width:14em;">个人专属条形码</div>
                    </div>
                </div>
                <div style="height:4.5em; width:2px; border-left:2px #f5956d solid"></div>
                <div class="ub-f1 " style="text-align: center">
                         <div class="ub-f1 " style="margin-left:1em"> 门票价格</div>
                         <div class="ub-f1 " style="margin-left:0.6em;font-size: 30px"> ¥30</div>
                         <div class="ub-f1 " style="font-size: 18px"> 此次参观免费</div>
                </div>
            </div>

        </div>    
            
            
        </div>
       
         
    </body>
</html>
